<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title><#if entity.firsttripId??>编辑<#else>新增</#if>代言人出行首位冠军</title>
    <#include "/view/head.html"/>


    <script type="text/javascript" src="${base}/jstool/bootstrap-select/js/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-select/lang/defaults-zh_CN.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-select/css/bootstrap-select.min.css" />


    <style type="text/css">
        .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }


    </style>
    <script type="text/javascript">

        $(function () {
            /*$("#userapproveId").selectpicker({
                noneSelectedText:'请选择',
                width : 300,
                liveSearch: true,
                maxOptions: 1

            })*/
        });
        function userapproveIdChange(dm){
            console.log(1);
        }
    </script>
</head>
<body>

<div class="list-path">
		<span style="margin-left: 50px;"> <a
                href="${base}/firsttrip/list.do"><span
                class="glyphicon glyphicon-home"></span> 代言人出行首位冠军列表</a> / <#if entity.firsttripId??>编辑<#else>新增</#if>代言人出行首位冠军
		</span>
    <div style="float: right; margin-right: 40px;">
        <a class="btn btn-info"
           href="${base}/firsttrip/list.do">返回上一级</a>
    </div>
</div>


<div class="table-class">
    <#include "/view/opermsg.html"/>
    <form id="firsttripForm" action="${base}/firsttrip/save.do"
     >
    <table class="table table-bordered">

                        <input type="hidden" style="display: none" name="firsttripId" value="${entity.firsttripId!}"/>



                <tr>
                <th>代言人类型</th>
                <td>
                    <div class="form-group">
                        <select id="represent" name="represent" class="form-control" >
                            <option value="">请选择代言人类型</option>
                            <option value="1" <#if entity.represent??&&1 == entity.represent>selected="selected"</#if>>红色出行代言人</option>
                            <option value="2" <#if entity.represent??&&2 == entity.represent>selected="selected"</#if>>绿色出行代言人</option>
                            <option value="3" <#if entity.represent??&&3 == entity.represent>selected="selected"</#if>>橙色出行代言人</option>
                        </select>
                    </div>
                </td>
                </tr>
            <tr>


                
                <th>代言人</th>
                <td>
                    <div class="form-group">
                       <!-- <select id="userapproveId" name="userapproveId" class="js-data-example-ajax form-control">
                            <option value="" selected="selected">请选择</option>
                        </select>-->
                        <select id="userapproveId" name="userapproveId" class="selectpicker"   data-live-search="true"   title="请选择代言人" >
                            <#list listUserApprove as var>
                                <option value="${var.userId!}"
                                <#if entity.userapproveId??>
                                    <#if entity.userapproveId == var.userId?string >
                                        selected="selected"
                                    </#if>
                                </#if>
                                >${var.userNum!}&nbsp;票&nbsp;/&nbsp;${var.nick!}</option>
                            </#list>

                        </select>
                    </div>
                </td>
                </tr>



        <tr>
            <td colspan="4" width="100%" style="text-align: center;">
                <input type="submit" class="btn btn-success " value="保存"/>
                <span style="width: 20px;">&nbsp;</span>
                <a class="btn btn-danger " href="javascript:window.history.go(-1)">
                   </span>返回</a>
            </td>
        </tr>

    </table>
</form>




</div>

<script type="text/javascript">

</script>


</body>
</html>
